<?php

declare(strict_types=1);

namespace App\Model;

use Hyperf\DbConnection\Model\Model;

class SystemOrderDay extends Model
{
    protected ?string $table = 'system_order_day';

    protected array $fillable = ['data_spread_id','playlet_id','order_count','order_wait_pay_count','order_pay_count','order_cannel_count','order_return_count',
        'order_wx_pay_count','order_virtually_pay_count','order_amount','order_wx_pay_amonut','order_virtually_pay_amount','date','hour','first_user_count','first_user_pay_amonut'];

    public function spread()
    {
        return $this->hasOne(DataSpread::class, 'id', 'data_spread_id')->select('id','name');
    }


}
